<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2024/6/25
  Time: 10:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h2>用户注册表单</h2>
<form action="RegisterServlet" method="post">
    <label for="userCode">用户编号：</label>
    <input type="text" id="userCode" name="userCode" required><br><br>

    <label for="userName">用户名：</label>
    <input type="text" id="userName" name="userName" required><br><br>

    <label for="userPassword">密码：</label>
    <input type="text" id="userPassword" name="userPassword" required><br><br>

    <label for="gender">性别：</label>
   <select id="gender" name="gender">
       <option value="0">请选择</option>
       <option value="1">男</option>
       <option value="2">女</option>
   </select><br><br>

    <label for="birthday">生日：</label>
    <input type="text" id="birthday" name="birthday" required><br><br>

    <label for="phone">联系电话：</label>
    <input type="text" id="phone" name="phone" required><br><br>
    <label for="address">地址：</label>
    <input type="text" id="address" name="address" required><br><br>

    <label for="userRole">用户角色：</label>
    <select id="userRole" name="userRole">
        <option value="0">请选择</option>
        <option value="1">普通用户</option>
        <option value="2">管理员</option>
    </select><br><br>
    <input type="submit" value="注册">
</form>
</body>
</html>
